<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
   	xmlns:ui="http://java.sun.com/jsf/facelets"
   	xmlns:h="http://java.sun.com/jsf/html"
   	xmlns:f="http://java.sun.com/jsf/core"
   	xmlns:bargas="http://barganhas.com.br/barganhas">
   	
   	<f:view contentType="text/html">
   		<f:loadBundle var="msg" basename="messages"/>
   		<h:head>
   			<title><h:outputText value="#{msg.privateAreaAdminTitle}"/></title>
			<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/styles-admin.css" />
			<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/styles-messages.css" />
			<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/styles-richfaces.css" />
			<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/styles-shared.css" />
   			<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
			<script type="text/javascript" src="#{request.contextPath}/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.2.2.Final/Packed/jquery.js"></script>
   			<script src="#{request.contextPath}/javascript/module.js" type="text/javascript" />
   			<script src="#{request.contextPath}/javascript/jquery.maskMoney.js" type="text/javascript" />
   		</h:head>
   		
   		<h:body>
   			<h:panelGroup id="wrapper" layout="block">
   				<h:form prependId="false">
	   				<h:panelGroup id="header" layout="block">
	   					<a href="#{request.contextPath}/" id="logoHeader" >
	   						<h:graphicImage value="/images/logo/logo2-3.png" width="350px"/>
	   					</a>
						<h:panelGroup layout="block" id="headerPrivateLogin">
							<h:graphicImage value="/images/lock.png"/>
							<h:outputText value="#{appSessionBean.administrator.nickname}"/>
							<h:commandLink value="#{msg.logoffMsg}" action="#{loginBean.logoff}" style="margin-left: 10px;" />
						</h:panelGroup>
	   				</h:panelGroup>
					
					<h:panelGroup id="menuTop" layout="block">
						<h:commandLink action="#{administratorBean.list}"
						               value="#{msg.privateAreaAdminatrators}"
						               immediate="true"
						               rendered="true"
						               styleClass="menuItem menuItemAdmin">
						</h:commandLink>
						
						<h:commandLink action="#{categoryBean.list}"
						               value="#{msg.privateAreaCategories}"
						               immediate="true"
						               rendered="true"
						               styleClass="menuItem menuItemCategories">
						</h:commandLink>
						
						<h:commandLink action="#{salesBean.list}"
						               value="#{msg.privateAreaSales}"
						               immediate="true"
						               rendered="true"
						               styleClass="menuItem menuItemSales">
						</h:commandLink>
						
						<h:commandLink action="#{advertisementTypeBean.list}"
						               value="#{msg.privateAreaAdvertisementType}"
						               immediate="true"
						               rendered="true"
						               styleClass="menuItem menuItemAdvertisementType">
						</h:commandLink>
						
						<h:commandLink action="#{userAccountBean.adminListUsers}"
						               value="#{msg.privateAreaUsers}"
						               immediate="true"
						               rendered="true"
						               styleClass="menuItem menuItemUsers">
						</h:commandLink>
						
						<h:commandLink action="#{advertisementBean.adminListAdvertisements}"
						               value="#{msg.privateAreaAdvertisement}"
						               immediate="true"
						               rendered="true"
						               styleClass="menuItem menuItemAdvertisement">
						</h:commandLink>

						<h:commandLink action="#{useTermBean.list}"
						               value="#{msg.privateUseTerms}"
						               immediate="true"
						               rendered="true"
						               styleClass="menuItem menuItemUseTerm" >
						</h:commandLink>

						<h:commandLink action="#{aboutSiteBean.list}"
						               value="#{msg.privateAboutSite}"
						               immediate="true"
						               rendered="true"
						               styleClass="menuItem menuItemAboutSite" >
						</h:commandLink>
					</h:panelGroup>

					<h:panelGroup styleClass="mainFormBox" layout="block">
						<ui:insert name="headForm"/>
						
						<h:panelGroup styleClass="mainForm" layout="block">
							<ui:insert name="formBody"/>
						</h:panelGroup>
						
						<h:panelGroup styleClass="mainFormBoxButtons" layout="block">
							<ui:insert name="formButtons"/>
						</h:panelGroup>
					</h:panelGroup>
					
					<bargas:messages />
				</h:form>
			</h:panelGroup>
   		</h:body>
   	</f:view>
</html>